<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="authz" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.centit.com/el/coderepo" prefix="cp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<c:set var="basePath" value="<%=basePath%>"/>
<html lang="zh-cmn-Hans">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="renderer" content="webkit">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<authz:csrfMetaTags/>
	<title>东航机队管理系统</title>
	<link rel="shortcut icon" href="<c:url value="/ui/favicon.ico" />" type="image/x-icon"/>
	<%-- <link rel="stylesheet" href="${cp:SYS_VALUE('app.staticfile.home')}/modules/login/sys/style.css"> --%>
	<link href="${cp:SYS_VALUE('app.staticfile.home')}/modules/login/sys/css/login.css" rel="stylesheet" rev="stylesheet" type="text/css" media="all" />
	<script type="text/javascript"
			src="${cp:SYS_VALUE('app.staticfile.home')}/ui/js/jquery/jquery-1.11.2.min.js"></script>
	<style type="text/css">
		:-webkit-autofill {
			-webkit-text-fill-color: #000 !important;
			transition: background-color 5000s ease-in-out 0s;
		}
	</style>
</head>
<body id="body_1">
<div class="header">
  <img alt="logo" style="float: left;position: relative;top: 50%;transform: translateY(-50%);" src="${cp:SYS_VALUE('app.staticfile.home')}/modules/login/sys/themes/logo.png">
  <img alt="logo" style="float: left;position: relative;top: 50%;transform: translateY(-50%);margin-left: 3%" src="${cp:SYS_VALUE('app.staticfile.home')}/modules/login/sys/themes/x.png">
  <img alt="logo" style="float: left;position: relative;top: 50%;transform: translateY(-50%);margin-left: 3%" src="${cp:SYS_VALUE('app.staticfile.home')}/modules/login/sys/themes/title.png">
</div>

<div class="banner">
<div class="login-aside">
 <form action="${pageContext.request.contextPath }/login" method="post" id="loginForm">
  <div id="o-box-up"></div>
  <div id="o-box-down"  style="table-layout:fixed;">
   <div class="error-box"></div>
 
   <div class="title">欢迎登陆</div>
		<div class="input">
			<div class="labeltext"><label class="labeltext">用户名/账号/手机号</label></div>
			<input class="inputtext" type="text" name="username" id="username" value="${SPRING_SECURITY_LAST_USERNAME}">
			<span class="spin"></span>
		</div>
		<div class="input">
			<div class="labeltext"><label>请输入密码</label></div>
			<input class="inputtext" type="password" name="password" id="password" required="required">
			<span class="spin"></span>
		</div>
		<c:if test="${LOGIN_ERROR_MSG != null && LOGIN_ERROR_MSG != ''}">
				<c:choose>
					<c:when test="${LOGIN_ERROR_MSG eq '坏的凭证'}">
						<br><span class="red">密码错误!</span>
					</c:when>
					<c:otherwise>
						<br><span class="red">用户名不存在!</span>
					</c:otherwise>
				</c:choose>
			</c:if>
		<div class="button login">
			<button type="submit" class="submit">登录</button>
		</div>

  </form>
  
  </div>

</div>

	<div class="bd">
		<ul>
			<li style="background:url(${cp:SYS_VALUE('app.staticfile.home')}/modules/login/sys/themes/theme-pic.png)  center  no-repeat;background-size: 100% 100%;"></li>
		</ul>
	</div>

	<div class="hd"><ul></ul></div>

<script type="text/javascript"></script>


<div class="banner-shadow"></div>

<!-- <div class="footer">
   <p></p>
</div> -->

<script>
</script>
</body>
</html>